
import request from '@/utils/request'
// import { Result} from './type'
// const token =  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImZlbmd4aW5xaWFuZyIsInBhc3N3b3JkIjoiY3BwZXRqIiwiZXhwIjoxNzE4OTY4MjU3fQ.9XTgdpkFPGAvNvuE3ZCyEOgPj9W_p762314moCsYC6Q'
// axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;
// localStorage.setItem('AuthorizationToken',token)
export const getToken = () =>{
    return request.get("/get/token")
}
export const getTabsContent = (data:any) =>{
    return request.post('/samples',data,{headers:{
        'Access-Control-Allow-Origin':'*',
    }})
}
// export function  getTabsContent(data):Promise<Result>{
//        return request.post('/samples',data,{headers:{
//         'Access-Control-Allow-Origin':'*',
//     }})
// }

export const login = (data:any) => {
    return request.post('/login',data)
}

export const like = (data:any) => {
    return request.post('/like',data)
}

export const dislike = (data:any) => {
    return request.post('/dislike',data)
}


